<template>
    <div class="common-layout">
        <el-container>
            <el-aside width="200px">侧边


                <el-row class="tac">
                    <el-col :span="24">
                        <h5 class="mb-2">Default colors</h5>
                        <el-menu router default-active="2" class="el-menu-vertical-demo" @open="handleOpen"
                            @close="handleClose">
                            <el-sub-menu index="1">
                                <template #title>
                                    <el-icon>
                                        <location />
                                    </el-icon>
                                    <span>Navigator One</span>
                                </template>

                                <el-menu-item index="/login/sp">item one</el-menu-item>



                            </el-sub-menu>

                        </el-menu>
                    </el-col>

                </el-row>
            </el-aside>
            <el-container>
                <el-header>上边</el-header>
                <el-main>整体

                    <router-view></router-view>
                </el-main>
            </el-container>
        </el-container>
    </div>
</template>

<script setup>
import {
    Document,
    Menu as IconMenu,
    Location,
    Setting,
} from '@element-plus/icons-vue'
const handleOpen = (key, keyPath) => {
    console.log(key, keyPath)
}
const handleClose = (key, keyPath) => {
    console.log(key, keyPath)
}
</script>

<style lang="scss" scoped></style>